package com.thc.feignclient;

import com.thc.domin.Ticket;
import com.thc.orderfallback.MovieClientFallback;
import com.thc.orderfallback.UserClientFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = "movie-server",fallback = MovieClientFallback.class )
public interface MovieFeignClient {

    @GetMapping("/movie/{id}")
    public Ticket findById(@PathVariable("id") Long id);
}
